package com.quanshi.shopping_category_customer_api.controller;


import com.quanshi.shopping_common.result.BaseResult;
import com.quanshi.shopping_common.service.ICategoryService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/category")
public class CategoryController {

    @DubboReference
    private ICategoryService categoryService;

    @GetMapping("/all")
    public BaseResult  findAll(){
        return BaseResult.success(categoryService.findAll());
    }
}
